package com.isoftstone.dao;

import java.util.List;

import com.isoftstone.entity.Department;
import com.isoftstone.entity.Doctor;

import com.isoftstone.entity.Patient;

import com.isoftstone.entity.Register;


import org.apache.ibatis.annotations.Param;

public interface PatientDao {

	/*显示所有患者*/
	public List<Patient> getAllPatientList();
	
	/*添加新患者*/
	public int insertPatient(Patient patient);

	/*通过身份证查患者信息*/
	public Patient getPatientByPatient_idcard(@Param("patient_idcard")String patient_idcard);
	
	 //按照name或者身份证号查询
	public List<Patient> selectPatientByName(Patient entity);
	
	//按照患者id查询行记录
	public Patient selectPatientById(String card_id);
	
	//查询科室列表
	public List<Department> selectDepartments();
	  
	//根据科室id查询医生列表
	public List<Doctor> selectDoctors(String dept_id);
	  
	//保存挂号信息
	public int insertRegister(Register entity);
}
